<?php

class BGoodsOrderDetail extends BaseModel
{
    protected $res;
    protected $key = "admin_";

    public function getSource()
    {
        return "f_b_goods_order_detail";
    }

    public function initialize()
    {
        parent::initialize();
    }


    public function order_goods_details($params = '1=1')
    {
        $columns = 'order_id,goods_id,goods_name,goods_image,goods_price,goods_count,size';
        $list    = $this::find(
            array(
                $params,
                'columns' => $columns,
            ));
        $result  = [];
        if ($list) {
            $result = $list->toarray();
        }
        return $result;
    }

}
